package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Have;
import cn.edu.bcu.ls.mapper.HaveMapper;
import cn.edu.bcu.ls.serviceImpl.HaveService;

@Service
public class HaveServiceImpl implements HaveService{

    @Resource
    private HaveMapper haveMapper;

    @Override
    public int deleteByPrimaryKey(String uId,Integer cId) {
        return haveMapper.deleteByPrimaryKey(uId,cId);
    }

    @Override
    public int insert(Have record) {
        return haveMapper.insert(record);
    }

    @Override
    public int insertSelective(Have record) {
        return haveMapper.insertSelective(record);
    }

	@Override
	public List selectByPrimaryKey(String uId) {
		return haveMapper.selectByPrimaryKey(uId);
		
	}

}
